-
-
Notifications
You must be signed in to change notification settings - Fork 602
fix(xl-email-exporter): better defaults, customize textStyles, output inline styles #1856
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub.
|
@blocknote/ariakit
@blocknote/code-block
@blocknote/core
@blocknote/mantine
@blocknote/react
@blocknote/server-util
@blocknote/shadcn
@blocknote/xl-ai
@blocknote/xl-docx-exporter
@blocknote/xl-email-exporter
@blocknote/xl-multi-column
@blocknote/xl-odt-exporter
@blocknote/xl-pdf-exporter
commit: |
3a4a4b6
to
251ec13
Compare
@nperez0111 Lovely to see this PR in live and in action again! Our build was erroring out already.
|
I'll fix this up for you @noudadrichem |
@noudadrichem I think that all that you need to do is re-install (the sha has changed) and it should work again. This will be put into an official release early next week, we have a couple more bug fixes we want to include that aren't ready yet |
@nperez0111 ye, a re-install solved it! |
This fixes an issue where the outputted color was the raw color string which happened to work for simple values like red, but did not output the exact color value that the user specified
Key Changes:
Customization and Styling Enhancements:
Configurable Text Styles for React Email Blocks:
ReactEmailTextStyles
type anddefaultReactEmailTextStyles
for defining default and customizable styles for text components like paragraphs, headings, and lists. (packages/xl-email-exporter/src/react-email/defaultSchema/blocks.tsx
) [1] [2]Customizable Color Schemes:
COLORS_DARK_MODE_DEFAULT
andCOLORS_DEFAULT
. (examples/05-interoperability/08-converting-blocks-to-react-email/src/App.tsx
) [1] [2]Enhanced Container Customization:
container
option to wrap email content with a customizable component. (docs/content/docs/features/export/email.mdx
)New API for Custom Styles:
reactEmailDefaultSchemaMappingsWithStyles
for creating schema mappings with custom styles. (docs/content/docs/features/export/email.mdx
,packages/xl-email-exporter/src/react-email/defaultSchema/index.ts
) [1] [2]